package org.qf.service.impl;

import org.qf.dao.impl.SmbmsOrderImpl;
import org.qf.pojo.SmbmsBill;
import org.qf.pojo.SmbmsBillItem;
import org.qf.service.SmbmsOrderService;

import java.util.List;

/**
 * @author zzzyyystart
 * @create 2022-05-11-13:24
 */
public class SmbmsOrderServiceImpl implements SmbmsOrderService {
   private SmbmsOrderImpl orderDao=new SmbmsOrderImpl();
    @Override
    public List<SmbmsBill> showBillList() {
        try {
            return orderDao.showBillList();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public  List<SmbmsBillItem> showBillDetail(String orderCode) {
        try {
            return  orderDao.showBillDetail(orderCode);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public int updateBillStatus(String orderId) {
        try {
            return orderDao.updateBillStatus(orderId);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return -1;

    }

    @Override
    public List<SmbmsBill> billStatusClassify(String billStatus) {
        try {
            return orderDao.queryForListByStatus(billStatus);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
